﻿(function () {
    "use strict";

    WinJS.Namespace.define("ClassExplorer.Data",
    {
        Subjects: null
    });

    WinJS.Namespace.define("ClassExplorer.Data.Models",
        {
            SubjectsModel: WinJS.Class.define(
        //constructor
            function (subjects) {
                this._subjects = [];

                for (var i = 0; i < subjects.length; i++) {
                    var subject = subjects[i];
                    this._subjects.push(subject);
                }
            },
            //instance members
            {
                getSubjects: function () {
                    return this._subjects;
                }
            },
            //static members
            {}),
            
            CoursesModel: WinJS.Class.define(
            function(courses) {
                this._courses = [];
                for (var i = 0; i < courses.length; i++) {
                    var course = courses[i];
                    this._courses.push(course);
                }
            },
            {
                 getCourses: function() {
                     return this._courses;
                 }   
            },
            {})
    });








    var buildingNames = {
        ACH: 'Alice H. Cook House',
        ADW: 'A D White House',
        AFC: 'Africana Ctr',
        AKW: 'Akwe:Kon',
        APP: 'Robert J & Helen Appel Cmns',
        APT: 'Appel Tennis Courts',
        ASA: 'Academic Surge A',
        ASB: 'Academic Surge B',
        ATH: 'Anabel Taylor Hall',
        BAL: 'Balch Hall',
        BAN: 'Baker North',
        BAS: 'Baker South',
        BAT: 'Baker Tower',
        BBH: 'Beebe Hall',
        BDF: 'Bradfield Hall',
        BET: 'Hans Bethe',
        BKL: 'Baker Laboratory',
        BKR: 'Carl Becker House',
        BLY: 'Bailey Hall',
        BOL: 'Boldt Hall',
        BRD: 'Bard Hall',
        BRN: 'Barnes Hall',
        BSC: 'Basic Science Building',
        BTB: 'Biotechnology',
        BTI: 'Boyce Thompson Institute',
        BTL: 'Bartels Hall',
        BTN: 'Barton Hall',
        CAS: 'Cascadilla Hall',
        CAV: 'College Ave,301',
        CCC: 'Computing & Communications Ctr',
        CGC: 'Cornell Golf Center',
        CLA: 'Clinical Programs - Ambulatory',
        CLD: 'Caldwell Hall',
        CLK: 'Clark Hall',
        CLM: 'Clinical Programs - "M" Barn',
        CLS: 'Clinical Programs - Surgery',
        CLU: 'Clinical Progs - Multipurpose',
        CMH: 'Corson and Mudd Bio Science',
        CMS: 'Comstock Hall',
        COM: 'Anna Comstock House',
        CRP: 'Carpenter Hall',
        CRT: 'Court Residence Hall',
        DAY: 'Day Hall',
        DCK: 'Clara Dickson Hall',
        DON: 'Mary Donlon Hall',
        DUF: 'Duffield Hall',
        ECO: 'Hurlburt House',
        EMR: 'Emerson Hall',
        ESN: 'Judith Eisner Pavillion',
        FND: 'Foundry',
        FNL: 'Newman, Floyd D. Laboratory',
        FRH: 'Flora Rose House',
        FRN: 'Fernow Hall',
        FWC: 'Friedman Wrestling Center',
        GGG: 'Green Greenhouse Bldg G',
        GRS: 'Grumman Squash Courts',
        GSH: 'Goldwin Smith Hall',
        GTR: 'Guterman Bioclimatic Lab',
        HEB: 'Human Ecology Building',
        HLS: 'Hollister Hall',
        HNH: 'Helen Newman Hall',
        HOP: 'Ho Plaza',
        HR1: 'High Rise #1',
        HR5: 'High Rise #5',
        HVL: 'High Voltage Laboratory',
        ICC: 'ILR Conference Center',
        IRB: 'ILR Research Building',
        IVS: 'Ives Hall',
        JLA: 'James Law Auditorium',
        JLO: 'Johnson Ctr - Lab of Ornithology',
        JMA: 'Johnson Museum Of Art',
        KHN: 'Stewart Ave 640,Kahin Center',
        KMB: 'Kimball Hall',
        KND: 'Kennedy Hall',
        KRC: 'Kroch,Carl A Library',
        KTN: 'William T. Keeton House',
        LNC: 'Lincoln Hall',
        LNH: 'Lynah Rink',
        LR6: 'Low Rise #6',
        LR7: 'Low Rise #7',
        LR8: 'Low Rise #8',
        LR9: 'Low Rise #9',
        LYO: 'Lyon Hall',
        MCF: 'Mcfaddin Hall',
        MCG: 'Mcgraw Hall',
        MEW: 'Mews Residence Hall',
        MKL: 'Moakley House - Golf Course',
        MLS: 'Milstein Hall',
        MLT: 'Malott Hall',
        MNL: 'Mann Library',
        MNS: 'Muenscher Laboratory',
        MRB: 'Moore Laboratory',
        MRL: 'Morrill Hall',
        MRS: 'Morrison Hall',
        MSC: 'Merrill Family Sailing Center',
        MTH: 'Myron Taylor Hall',
        MVR: 'M Van Rensselaer East Wing',
        NLB: 'Noyes Lodge - Beebe Lake',
        NRC: 'Noyes Community And Rec Ctr',
        NVN: 'Nevin Welcome Center',
        OLC: 'Olin Chemistry Research Wing',
        OLH: 'Olin Hall',
        OLL: 'Olin Library',
        OXL: 'John T Oxley Equestrian Center',
        PCS: 'Pomology Cold Storage Sales',
        PHL: 'Phillips Hall',
        PHS: 'Physical Sciences Building',
        PLS: 'Plant Science Building',
        RBT: 'Roberts Hall ',
        RCE: 'Rice Hall',
        RCK: 'Rockefeller Hall',
        RHD: 'Frank H T Rhodes Hall',
        RND: 'Rand Hall',
        RPC: 'Robert Purcell Community Ctr',
        RRB: 'Riley-Robb Hall',
        RSL: 'Risley, Prudence Resd. College',
        RST: 'Risley Tennis Court',
        RTC: 'Reis Tennis Center',
        RWL: 'Rawlings Green',
        SBL: 'Sibley Hall',
        SGC: 'Sage Chapel',
        SGH: 'Sage Hall',
        SHK: 'Schoellkopf Memorial',
        SKF: 'Schoellkopf Field',
        SKT: 'Schoellkopf Track',
        SNB: 'Snyd Hill Baker Inst Thaw Lec',
        SNE: 'Snee Hall Geological Science',
        SRM: 'Schurman Hall',
        SSB: 'Space Sciences Building - CRSR',
        STK: 'Stocking Hall',
        STL: 'Statler Hall & Auditorium',
        STM: 'Stimson Hall',
        SVG: 'Savage Hall',
        SWZ: 'Schwartz Ctr-Performing Arts',
        TBA: 'To Be Announced',
        TCC: 'Townhouse Community Center',
        TGL: 'Teagle Hall',
        THR: 'Thurston Hall',
        TJN: 'Olive Tjaden Hall',
        UJM: 'Ujamaa',
        UNI: 'University Ave 726 A&S',
        UPS: 'Upson Hall',
        URH: 'Uris Hall',
        URL: 'Uris Library',
        VCM: 'Vet Center For Mobility',
        VEC: 'Vet Education Center',
        VMC: 'Vet Medical Center',
        VRT: 'Vet Research Tower',
        WHT: 'White Hall',
        WLL: 'Weill Hall',
        WNG: 'Wing Hall',
        WRN: 'Warren Hall',
        WSH: 'Willard Straight Hall'
    };

})();